package com.ruoyi.system.domain;

import java.util.List;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonView;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 具体打印细节对象 jac_print_model
 *
 * @author ruoyi
 * @date 2020-07-21
 */
public class JacPrintModel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    public interface printModelIdView {};

    /** 模板打印ID */
    private Long modelId;

    /** 打印模板名 */
    @Excel(name = "打印模板名")
    @JsonView(value = printModelIdView.class)
    private String modelName;

    /** 对应模板文件ID */
    @Excel(name = "对应模板文件ID")
    @JsonView(value = printModelIdView.class)
    private String fileId;

    /** 对应模板文件name */
    @Excel(name = "对应模板文件name")
    private String realName;


    /** 所属基地ID合集 */
    private List<Long> factoryIds;

    /** 所属基地ID */
    private Long factoryId;

    /** 所属菜单ID */
    @Excel(name = "所属菜单ID")
    private Long menuId;

    /** 所属菜单name*/
    @Excel(name = "所属菜单name")
    private String menuName;

    /** 模板类型0已发布1禁用 */
    @Excel(name = "模板类型0已发布1禁用")
    private Integer modelType;

    /** 删除标记 0正常 1删除 */
    private Integer delFlag;

    /** 模板预览参数，json样式*/
    private String modelParameter;

//    /** 备注字段，用于作为合同区分*/
    @JsonView(value = printModelIdView.class)
    private String remark;

    public void setmodelId(Long modelId)
    {
        this.modelId = modelId;
    }

    public Long getmodelId()
    {
        return modelId;
    }
    public void setModelName(String modelName)
    {
        this.modelName = modelName;
    }

    public String getModelName()
    {
        return modelName;
    }
    public void setFileId(String fileId)
    {
        this.fileId = fileId;
    }

    public String getFileId()
    {
        return fileId;
    }


    public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public void setFactoryIds(List<Long> factoryIds)
    {
        this.factoryIds = factoryIds;
    }

    public List<Long> getFactoryIds()
    {
        return factoryIds;
    }


    public Long getFactoryId() {
		return factoryId;
	}

	public void setFactoryId(Long factoryId) {
		this.factoryId = factoryId;
	}

	public void setMenuId(Long menuId)
    {
        this.menuId = menuId;
    }

    public Long getMenuId()
    {
        return menuId;
    }

    public String getMenuName() {
		return menuName;
	}

	public void setMenuName(String menuName) {
		this.menuName = menuName;
	}

	public void setModelType(Integer modelType)
    {
        this.modelType = modelType;
    }

    public Integer getModelType()
    {
        return modelType;
    }
    public void setDelFlag(Integer delFlag)
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag()
    {
        return delFlag;
    }

    public void setModelParameter(String modelParameter)
    {
        this.modelParameter = modelParameter;
    }

    public String getModelParameter()
    {
        return modelParameter;
    }

    @Override
    public String getRemark() {
        return remark;
    }

    @Override
    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("modelId", getmodelId())
            .append("modelName", getModelName())
            .append("fileId", getFileId())
            .append("realName", getRealName())
            .append("factoryId", getFactoryId())
            .append("menuId", getMenuId())
            .append("modelType", getModelType())
            .append("delFlag", getDelFlag())
            .append("factoryIds", getFactoryIds())
            .append("modelParameter", getModelParameter())
            .toString();
    }
}
